﻿using JunionRobotTaskManager.Models;

namespace JunionRobotTaskManager.Dtos
{
    public class JobDto
    {
        #region 属性

        /// <summary>
        /// 任务Id
        /// </summary>
       
        public string Id { get; set; }


        #region 时间

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }


        /// <summary>
        /// 开始执行时间
        /// </summary>
        public DateTime? BeginTime { get; set; }


        /// <summary>
        /// 任务更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        #endregion

        /// <summary>
        /// 任务状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 任务优先级
        /// </summary>
        public int Priority { get; set; }

        /// <summary>
        /// 任务目标点
        /// </summary>
        
        public string Targets { get; set; }


        /// <summary>
        /// 任务物料号
        /// </summary>
        public string[] MaterialCodes { get; set; }


        /// <summary>
        /// 任务类型 1.接料任务,2.送料任务,3.复合任务, 4.充电任务
        /// </summary>
        public int Type { get; set; }


        /// <summary>
        /// 备用字段
        /// </summary>
        public string Remark { get; set; } 

        /// <summary>
        /// 分配机器人的ID
        /// </summary>
        public string RobotId { get; set; } //机器人IP

       

        /// <summary>
        /// 机器人最近的一个对接位置编号
        /// </summary>
        public string CurrentPosition { get; set; }

        

        /// <summary>
        /// 机器人下一个位置点
        /// </summary>
        public string CurrentTarget { get; set; }
        
        #endregion
    }
}
